package com.huabo.system.oracle.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hbfk.util.PageInfo;
import com.huabo.system.oracle.entity.TblContractTypeof;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.SelectProvider;
import org.apache.ibatis.annotations.Update;

import java.util.List;

public interface TblContractTypeofMapper extends BaseMapper<TblContractTypeof> {


    @SelectProvider(method = "selectPageInfoList", type = TblContractTypeofMapperSqlConfig.class)
    List<TblContractTypeof> selectPageInfoList(PageInfo<TblContractTypeof> pageInfo);

    @SelectProvider(method = "selectPageInfoCount", type = TblContractTypeofMapperSqlConfig.class)
    Integer selectPageInfoCount(PageInfo<TblContractTypeof> pageInfo);

    @Select("SELECT * FROM TBL_CONTRACT_TYPEOF WHERE typeId = #{typeId}")
    List<TblContractTypeof> selectAllList(String typeId);

    @Update("UPDATE TBL_CONTRACT_TYPEOF SET SETTINGID = #{settingid} WHERE typeId = #{typeId}")
    void updateContractTypeof(TblContractTypeof typeof);
}
